Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Repl is a lightweight template library in NodeJS.
Tiny!
Fast!
Easy!
Useful!
GIT
$ git clone https://github.com/firejune/repl.git
NPM
$ npm install repl
require('repl');
/**
* Use case 2
*/
var context = {
href: 'http://firejune.com'
, text: 'firejune.com'
};
var anchor = '<a href="{href}">{text}</a>';
console.log(anchor.repl(context));
//-> <a href="http://firejune.com">firejune.com</a>
/**
* Use case 2
*/
var chat = {
user: "Firejune"
, message: {
text: "hello world"
, date: "Fri Jul 16 16:58:46 +0000 2010"
}
};
var row = [
'<p>',
'<strong>{user}:</strong>',
'<span>{message.text}</span>',
'<em>{message.date}</em>',
'</p>'
].join('');
console.log(row.repl(chat));
//-> <p><strong>Firejune:</strong><span>hello world</span><em>Fri Jul 16 16:58:46 +0000 2010</em></p>
Have fun!
MIT <3
FAQs
A simple fast template libray.
The npm package repl receives a total of 22,224 weekly downloads. As such, repl popularity was classified as popular.
We found that repl demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.